import { _decorator, assetManager, Component, director, Node, sys } from 'cc';
import { AudioManager } from '../../../common/src/manager/AudioManager';
import { UIManager } from '../../../framework/ui/uimanager/UIManager';
import { GGAudio } from '../../../framework/core/base/GGAudio';
import { GGStore } from '../../../framework/core/base/GGStore';
import { MonoUIPanel } from '../../../common/src/mono/MonoUIPanel';
const { ccclass, property } = _decorator;

@ccclass('ExitDialog')
export class ExitDialog extends MonoUIPanel {

    // --------------------- 点击事件 --------------------- //
    private async onClosePanel() {
        AudioManager.playButton();
        await this.onExitAnimation();

        UIManager.close("exit:res/prefab/ExitDialog");
    }

    public onClickReturnButton() {
        director.loadScene('start')
    }
}


